package uml.structural.bridge.eg_2;

/**
 * 桥接模式【柄体模式、接口模式】--扩展抽象类【细化抽象类】<br>
 * on 2022/12/23 23:16
 */
public class PngImage extends Image {

    @Override
    public Matrix parseFile(String file) {
        Matrix matrix = new Matrix(10, 20);
        System.out.println("解析文件【"+file+"】,后缀为png");
        return matrix;
    }

    @Override
    public void paint(String file) {
        Matrix matrix = parseFile(file);
        impl.printImage(matrix);
    }
}
